<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Ad extends Model
{
    protected $table = 'ad';

    public function getStartTimeAttribute($start_time)
    {
        return $start_time ? date("Y-m-d H:i:s", $start_time) : 0;
    }

    public function getEndTimeAttribute($end_time)
    {
        return $end_time ? date("Y-m-d H:i:s", $end_time) : 0;
    }
}
